namespace EasyDapr.Infrastructure.Response
{
    /// <summary>
    /// API RESULT
    /// </summary>
    /// <typeparam name="T"></typeparam>
    public class ApiResult<T>
    {
        /// <summary>
        /// Exception Inner Message
        /// </summary>
        public string InnerMessage { get; set; }

        /// <summary>
        /// Message
        /// </summary>
        public string Message { get; set; }

        /// <summary>
        /// Data
        /// </summary>
        public T Data { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public bool Success { get; set; }

        /// <summary>
        /// Code
        /// </summary>
        public int StatusCode { get; set; }

        public ApiResult()
        {
            StatusCode = 200;
        }
    }
}